/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pojo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author A7med Kotb
 */
@Entity
@Table(name = "services_and_solutions")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "ServicesAndSolutions.findAll", query = "SELECT s FROM ServicesAndSolutions s"),
    @NamedQuery(name = "ServicesAndSolutions.findBySasId", query = "SELECT s FROM ServicesAndSolutions s WHERE s.sasId = :sasId"),
    @NamedQuery(name = "ServicesAndSolutions.findByName", query = "SELECT s FROM ServicesAndSolutions s WHERE s.name = :name"),
    @NamedQuery(name = "ServicesAndSolutions.findByImageUrl", query = "SELECT s FROM ServicesAndSolutions s WHERE s.imageUrl = :imageUrl")})
public class ServicesAndSolutions implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @NotNull
    @Column(name = "sas_id")
    private Integer sasId;
    @Size(max = 100)
    @Column(name = "name")
    private String name;
    @Lob
    @Size(max = 65535)
    @Column(name = "description")
    private String description;
    @Size(max = 100)
    @Column(name = "image_url")
    private String imageUrl;

    public ServicesAndSolutions() {
    }

    public ServicesAndSolutions(Integer sasId) {
        this.sasId = sasId;
    }

    public Integer getSasId() {
        return sasId;
    }

    public void setSasId(Integer sasId) {
        this.sasId = sasId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (sasId != null ? sasId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ServicesAndSolutions)) {
            return false;
        }
        ServicesAndSolutions other = (ServicesAndSolutions) object;
        if ((this.sasId == null && other.sasId != null) || (this.sasId != null && !this.sasId.equals(other.sasId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "pojo.ServicesAndSolutions[ sasId=" + sasId + " ]";
    }
    
}
